local plugin = "mason"
local status, _ = pcall(require, plugin)
if not status then
  vim.notify("没有找到 " .. plugin)
  return {}
end

return {
  "williamboman/mason.nvim",
  opts = {
    ui = {
      icons = {
        package_installed = "✓",
        package_pending = "➜",
        package_uninstalled = "✗",
      },
    },
    github = {
      ---@since 1.0.0
      -- The template URL to use when downloading assets from GitHub.
      -- The placeholders are the following (in order):
      -- 1. The repository (e.g. "rust-lang/rust-analyzer")
      -- 2. The release version (e.g. "v0.3.0")
      -- 3. The asset name (e.g. "rust-analyzer-v0.3.0-x86_64-unknown-linux-gnu.tar.gz")
      download_url_template = "https://kkgithub.com/%s/releases/download/%s/%s",
    },

    pip = {
      ---@since 1.0.0
      -- Whether to upgrade pip to the latest version in the virtual environment before installing packages.
      upgrade_pip = false,

      ---@since 1.0.0
      -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
      -- and is not recommended.
      --
      -- Example: { "--proxy", "https://proxyserver" }
      install_args = { "-i", "https://pypi.tuna.tsinghua.edu.cn/simple" },
    },
  },
}
